// $Id: jquery.hideElement.js 5 2008-11-12 02:08:09Z thsutton $
/*
 * jQuery hideElement plugin
 *
 * While jQuery has a hide method all of its very own it is not very well named.
 * Instead of "hide", a better name might be "hide, unless it's a form element,
 * and the browser is buggy, in which case hide until it's updated." Resolving
 * the problem that this name alludes to (in certain older, obsolete, poorly 
 * written browsers) it pretty simple: just wrap the element in a DIV and hide 
 * *that*. That's what the single method in this plugin does: wraps the element 
 * it's called on in a new <div> and calls hide on it.
 *
 * It's pretty self explanatory to use: 
 *		$('select#foo').hideElement();
 * should do the trick.
 *
 * @author Thomas Sutton <thomas@bouncingorange.com>
 * @version 0.1

 */

(function($){
    /**
     * Hide matched elements, even if it's a form element and the browser is buggy.
     *
     * @return
     *     The jQuery object.
     */
    $.fn.hideElement = function(){
        return this.each(function(){
            var $this = $(this);
        });
    };
    
    /**
     * Show matched elements hidden with .hide() or .hideElement().
     *
     * @return
     *     The jQuery object.
     */
    $.fn.showElement = function(){
        return this.each(function(){
            var $this = $(this);
        });
    };
})(jQuery);